import Mock from 'mockjs'

const data = Mock.mock({
    'data|8': [{
        'text': '@cword(1,2)科',
        'children|10':[{
            'text':'@cword(3,5)科',
            'id|+1':1
        }]
    }]
})

Mock.mock('/getdepartment', 'get', () => {
    data.code = '200'
    return data
})